libxl: do not log lack of guest support for suspend event channel
authorIan Campbell <ian.campbell@citrix.com>
Thu, 2 Sep 2010 17:16:28 +0000 (18:16 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 2 Sep 2010 17:16:28 +0000 (18:16 +0100)
Implementation of the suspend event channel is completely optional for
a guest so do not log this normal occurrence.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl_dom.c

index a07bea755b44044794e4a6313e2e8ae335603b4d..e83bbbf20b844355406f5262ebd669050104cc9c 100644 (file)
@@ -378,9 +378,7 @@ int core_suspend(libxl_ctx *ctx, uint32_t domid, int fd,
     if (si.xce > 0) {
         port = xs_suspend_evtchn_port(si.domid);
 
-        if (port < 0) {
-            XL_LOG(ctx, XL_LOG_WARNING, "Failed to get the suspend evtchn port");
-        } else {
+        if (port >= 0) {
             si.suspend_eventchn = xc_suspend_evtchn_init(ctx->xch, si.xce, si.domid, port);
 
             if (si.suspend_eventchn < 0)